We can unconditionally call into the icon helper methods now that we
removed the g_return_val_if_fail() checks.
if (!icon_info)
return NULL;
- return _gtk_icon_helper_get_storage_type (icon_info->icon_helper) == GTK_IMAGE_GICON ?
- _gtk_icon_helper_peek_gicon (icon_info->icon_helper) : NULL;
+ return _gtk_icon_helper_peek_gicon (icon_info->icon_helper);
}
/**
if (!icon_info)
return NULL;
- return _gtk_icon_helper_get_storage_type (icon_info->icon_helper) == GTK_IMAGE_STOCK ?
- _gtk_icon_helper_get_stock_id (icon_info->icon_helper) : NULL;
-
+ return _gtk_icon_helper_get_stock_id (icon_info->icon_helper);
}
/**
if (!icon_info)
return NULL;
- return _gtk_icon_helper_get_storage_type (icon_info->icon_helper) == GTK_IMAGE_ICON_NAME ?
- _gtk_icon_helper_get_icon_name (icon_info->icon_helper) : NULL;
-
+ return _gtk_icon_helper_get_icon_name (icon_info->icon_helper);
}
/**